# -*- coding: utf-8 -*-

'''eof
name:行内行业授信政策
code:Industry_Score_8
tableName:
columnName:
groups:行业评分模块
dependencies:INDUSTRY_INFO
type:常用指标
datasourceType:在线指标
description:
eof'''

null_type_list = ['', None, 'None', 'null', 'Null', 'NULL', '/', ' ',[]]

def Industry_Score_8():
    try:
        data = INDUSTRY_INFO.get("data")
        if data in null_type_list:
            return u"缺失值"
        industryPolicy = data.get("industryPolicy")
        if industryPolicy in null_type_list:
            return u"缺失值"
        else:
            policy = industryPolicy[0].get("policy")
        if policy in null_type_list:
            return u"缺失值"
        else:
            return policy
    except:
        return u"缺失值"

result = Industry_Score_8()
    